package com.tankGame;

import java.awt.*;
import java.util.Vector;

/**
 * @author LingLed
 * @version 1.0
 */
public class Enemy extends Tank implements Runnable {
    //敌人坦克

    //敌人列表,绘画时从这个集合遍历获取绘制

    public Enemy(int x, int y)  {
        super(x, y, Tank.TYPE_ENEMY);
        setDirect(Tank.DIRECT_DOWN);
        start();
//        stopRandomFire();
        //生成坦克之后马上启动ai
    }

    public void draw(Graphics g) {
        if (g == null) {
            throw new RuntimeException("g不能为空");
        }
        super.drawTank(getX(), getY(), g, getDirect(), getType());
    }

    @Override
    public void run() {

    }


}
